#ifndef I2C_H
#define I2C_H
#include "stm32f10x.h"


void i2c_init(void);

int i2c_send_bytes(I2C_TypeDef* I2Cx,uint8_t addr,uint8_t* data,uint16_t size);

int i2c_recv_bytes(I2C_TypeDef* I2Cx,uint8_t addr,uint8_t* buffer,uint16_t size);

void led_init(void);

#endif


